HTML5 Multimedia: Develop and Design (Eva Spring's Library) by Ian Devlin

HTML5 Multimedia: Develop and Design (Eva Spring's Library) by Ian Devlin

Author:Ian Devlin
Language: eng
Format: epub
Publisher: Peachpit Press
Published: 2012-06-12T16:00:00+00:00


Using Transitions with Audio and Video

Because you can apply transitions to any HTML element, you can of course use transition with the audio and video elements:

video {

width:146px;

height:76px;

-webkit-transition: all 1s ease;

-moz-transition: all 1s ease;

-o-transition: all 1s ease;

-ms-transition: all 1s ease;

transition: all 1s ease;

}

video:hover {

width:292px;

height:152px;

}

Try to visualise how the video smoothly increases in size from 146 × 76 to 292 × 152 (Figure 7.3).

Figure 7.3 On hover, the video smoothly transitions from one size (A) to another (C) with transitions in between (represented by B).



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.